﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace McsUtility
{
    public enum AppState
    {
        Starting, Started, Stoping, Stoped, Error
    }

    [StructLayout(LayoutKind.Sequential)]
    public class ClientInfo
    {
        public IntPtr ConnId { get; set; }
        public string IpAddress { get; set; }
        public ushort Port { get; set; }
    }

    public class ClientData
    {
        public string Id { get; set; }
        public int NodeId { get; set; }
        public int CommId { get; set; }
        public string LoginName { get; set; }
        public string Password { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime ActiveTime { get; set; }
        public string[] MainData { get; set; }
    }

    public class MinerData
    {
        public string[] MainData { get; set; }
        public string[] MainHashrate { get; set; }
        public string[] SubHashrate { get; set; }
        public string[] TmpData { get; set; }
        public string[] FanData { get; set; }
    }
}
